package obstaculos;

import org.anddev.andengine.entity.sprite.AnimatedSprite;
import org.anddev.andengine.opengl.texture.TextureManager;

import android.content.Context;

public class Esteira extends Obstaculo {

	public Esteira(int x, int y, Context contexto, TextureManager tm) {
		this.x = x;
		this.y = y;
		largura = 128;
		altura = 64;
	}

	@Override
	public void atualiza() {
		//frametimer+=diftime;
		//frame = (frametimer/animspeed)%3;
	}

	@Override
	public boolean colidiuComDono(AnimatedSprite spriteDono) {
		return true;
	}

	@Override
	public void posicionaNaCena(int mapx, int mapy) {
		if(meuGatilho.ativado){
			//dbg.drawImage(sprite, (int)X-mapx, (int)Y-mapy,(int)X+128-mapx, (int)Y+32-mapy, (frame*128)+128, anim*32, frame*128, anim*32+32, null);
			//dbg.drawImage(spriteAtivacao, (int)XAtivacao-mapx, (int)YAtivacao-mapy,(int)XAtivacao+32-mapx, (int)YAtivacao+32-mapy, 32, 0,64, 32, null);
		}else{
			//dbg.drawImage(sprite, (int)X-mapx, (int)Y-mapy,(int)X+128-mapx, (int)Y+32-mapy, 0, 0, 128, 32, null);
			//dbg.drawImage(spriteAtivacao, (int)XAtivacao-mapx, (int)YAtivacao-mapy,(int)XAtivacao+32-mapx, (int)YAtivacao+32-mapy, 0, 0,32, 32, null);
		}
	}
}
